/*
 * @Author: 大D
 * @email: 857216393@qq.com
 * @Date: 2024-01-26 10:20:42
 * @Description: 自定义指令集合
 */

import type { App } from 'vue';

// import debounce from './debounce';
// import throttle from './throttle';
// import clickOut from './clickOut';
import drag from './drag';
import permission from './permission';
// import longpress from './longpress';
const directives: any = {
  // debounce,
  // throttle,
  // clickOut,
  drag,
  permission
  // longpress,
};

export default function directive(app: App<Element>) {
  Object.keys(directives).forEach(item => {
    app.directive(item, directives[item]);
  });
}
